package com.dom.common.constants;

/**
 * @Author: leixiaolong
 * @ProjectName: invo
 * @Package: com.dom.invo.consts
 * @Description: 标准错误枚举类
 * @Date: created in 上午3:21 18/1/17
 * @modfiy by:
 */
public enum ConstantError {
    ILLREQERROR("RSP010001","请求参数不能为空"),
    BLANKCERTTYPEERROR("RSP010002","证件类型不能为空"),
    BLANKCERTNOERROR("RSP010003","证件号码不能为空"),
    ILLDBMODELERROR("RSP010004","数据库模型生成错误"),
    BUSIMODELERROR("RSP010005","业务数据模型生成错误"),
    BLANKSYSTBLERROR("RSP010006","参数代码与参数值不能为空"),
    BLANKMEMCODEERROR("RSP010007","会员编码不能为空"),
    ILLQUERYERROR("RSP010008","未查询到数据"),
    ILLMODIFYERROR("RSP010009","修改信息后提交"),
    ILLUPDATEERROR("RSP010010","存在多笔记录\\,请联系后台修正"),
    BLANKNAMEERROR("RSP010011","名称不能为空"),
    BLANKSEXERROR("RSP010012","性别不能为空"),
    BLANKPHONEERROR("RSP010013","联系电话不能为空"),
    BLANKEMAILERROR("RSP010014","联系邮箱不能为空"),
    BLANKORGANERROR("RSP010015","机构不能为空"),
    BLANKDATEERROR("RSP010016","日期不能为空"),
    ILLDATEFORMERROR("RSP010017","日期格式非法"),
    CANCELBILLERROR("RSP0100018","已撤销单据不允许变更"),
    VERFYBILLERROR("RSP0100019","待审核与审核通过单据不允许变更"),
    UNSELFERROR("RSP0100020","非本人不允许变更"),
    VERFYMSGERROR("RSP0100021","请补充审核失败信息"),
    UNWAITVERFYERROR("RSP0100022","非待审核不允许审核"),
    UNPASSVERFYERROR("RSP0100023","非审核通过不允许反审核"),
    NO_ROLE_ERROR("RSP0100024", "用户角色信息不存在"),
    OPERATOR_USER_ILLEGAL("RSP0100025", "操作员用户非法"),
    NO_USER_ERROR("RSP0100026", "用户信息不存在"),
    NO_ORGAN_ERROR("RSP0100027", "机构信息不存在"),
    NOT_PRIVS_ERROR("RSP0100028", "请选择权限后变更"),
    NOT_CODE_ERROR("RSP0100029", "商品代码已经启用或停用不能修改！"),
    ILLTRADEERROR("RSP010091","非法交易"),
    TRADEERROR("RSP010092","交易异常"),
    DATAERROR("RSP010093","数据异常"),
    RSP010095("RSP010095","反审核单据不允许重复反审核"),
    RSP010096("RSP010096","已提交的单据不允许变更"),
    RSP010097("RSP010097","审核通过的单据不允许变更"),
    RSP010098("RSP010098","已撤销or待撤销单据不允许变更"),
    RSP010099("RSP010099","非待审核单据不允许审核"),
    RSP010100("RSP010100","审核通过单据不允许重复审核"),
    RSP010101("RSP010101","已撤销or待撤销单据不允许审核"),
    RSP010102("RSP010102","已提交单据不允许重复提交审核"),
    RSP010103("RSP010103","已撤销or待撤销单据不允许提交审核"),
    RSP010104("RSP010104","操作人与制单人不一致不允许提交审核"),
    RSP010105("RSP010105","审核失败原因不能为空"),
    DAYBALANCEERROR("RSP010094","日终结算中\\,请稍后重试");

    private String errCode;
    private String errMsg;

    ConstantError(String errCode , String errMsg){
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    @Override
    public String toString() {
        return "ConstantError{" +
                "errCode='" + errCode + '\'' +
                ", errMsg='" + errMsg + '\'' +
                "} " + super.toString();
    }

    public String getErrCode() {
        return errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }
}
